package lab02.text13;

/**
 * Created by Adminitrator on 2017/10/23.
 */
public class School extends ComputerAverage {
    double []data;
    School(){
    }
    School(double []data){
        this.data=data;
    }
    @Override

    double average(double[] data) {
        double sum=0;
        double average;
        for(int i=0;i<data.length;i++){
            sum+=data[i];
        }
        average=sum/data.length;
        return average;
    }
}
